
#include <iostream>
#include <thread>
#include <mutex>
#include <string>
#include "p2p_server.h"


static uint16_t port = 8080;
std::string g_ip = "0.0.0.0";

int main()
{

	P2PServer p2p_server;

	if (!p2p_server.Start(port, "./",g_ip.c_str())) {
		return -1;
	}
	printf("over 1 \n");
	while (1)
	{
		std::this_thread::sleep_for(std::chrono::milliseconds(5000));
	}
	p2p_server.Stop();
	std::cout << "Hello World!\n";
}
